package com.lino.design;

import java.util.Date;

/**
 * @description: 活动控制层
 * @author: lingjian
 * @createDate: 2022/12/22 15:55
 */
public class ActivityController {

    /**
     * 查询活动信息
     *
     * @param id 产品ID
     * @return 活动信息
     */
    public Activity queryActivityInfo(Long id) {
        Activity activity = new Activity();
        activity.setId(10001L);
        activity.setName("图书嗨乐");
        activity.setDesc("图书优惠券分享激励分享活动第二期");
        activity.setStartTime(new Date());
        activity.setStopTime(new Date());
        activity.setStock(new Stock(1000, 1));
        return activity;
    }
}
